//引入axios封装
import request from '@/utils/request'
//获取群聊任务详细
export function getCollect(params) {
  return request({
    url: '/Collect/get/Collect',
    method: 'post',
    data:params
  })
}
//删除群聊任务
export function deleteCollect(id) {
  return request({
    url: `/Collect/delete/Collect/${id}`,
    method: 'post',
  })
}
//新增群聊任务
export function insertCollect(params) {
  return request({
    url: `/Collect/insert/Collect`,
    method: 'post',
    data:params
  })
}
//修改群聊任务
export function updateCollect(params) {
  return request({
    url: `/Collect/update/Collect`,
    method: 'post',
    data:params
  })
}
